package com.study.spring.config;


import com.study.spring.common.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration

@EnableAspectJAutoProxy
@ComponentScan(basePackages = "com.*")
public class SpringConfig {


//    @Bean(initMethod = "init" ,destroyMethod = "destory")
//    public Person person(){
//
//        return new Person("xxx",20);
//    }

}
